//
//  PickerViewController.h
//  E-Book
//

/*******************************************************
 类名：PickerViewController.h
 功能描述：查询条件筛选控制器
 
 */

#import <UIKit/UIKit.h>

@class PickerViewController;

@protocol PickerViewControllerDelegate <NSObject>

//清空按钮点击事件
- (void)clearButton:(id)sender clickedInPickerViewController:(PickerViewController *)pickerViewController;

//完成按钮点击事件
- (void)doneButton:(id)sender clickedInPickerViewController:(PickerViewController *)pickerViewController;

//年份改变
- (void)textYearChanged:(NSString *)text inPickerViewController:(PickerViewController *)pickerViewController;

//类目改变
- (void)textNameChanged:(NSString *)text inPickerViewController:(PickerViewController *)pickerViewController;

@end

@interface PickerViewController : UIViewController<UIPickerViewDataSource,UIPickerViewDelegate,UITextFieldDelegate>

@property (weak, nonatomic) id<PickerViewControllerDelegate> delegate;

//释放键盘方法
-(void)hideKeyboard;

@end
